<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
		<link href="template/css/Site_reservation.css" type="text/css" rel="stylesheet"/>
		<title>Site_accueil</title>
	</head>
	
	<body>
		<?php
			include('header.html');
		?>
			<section>
				<h1><u>Les annonces de votre recherche : </u></h1>
				<div id="list_produit">
					<?php
						if($error == '') {
							while($result = $query->fetch_object()) {
					?>
						<div id="produit<?php echo $result->pid; ?>" class="produit">
							<img src="photos/<?php echo $result->url; ?>" height="100" width="100" style="float:left;" />
							<p style="float:left;margin-left: 20px">Desription:<br/><?php echo nl2br($result->description); ?><br/>
							<a href="ficheBien.php?id=<?php echo $result->pid; ?>">Voir la fiche compl&egrave;te</a></p>
						</div>
					<?php
							}
						} else {
					?>
						<div id="error" style="background-color:#FE642E;"><?php echo $error; ?></div>
					<?php
						}
					?>
				</div>
			</section>
		
		
		<?php
			include('footer.html');
		?>
	</body>
</html>